
# ifndef __JOIN_H__
# define __JOIN_H__

# include <stdlib.h>
# include <stdio.h>
# include <string.h>
# include <ctype.h> /* tolower() */
# include "handle-args.h"

/* códigos de error */
# define ERROR_MEMORY  0x01
# define ERROR_LENGTH  0x02
# define ERROR_UP      0x03
# define ERROR_IO			 0x04
# define ERROR_UNKNOWN 0x0A

/* constantes */
# define KEY_SIZE   			100
# define VALUE_SIZE				5000
# define JOIN_STDIN_DONE	0x0B

/* key - value struct */
typedef struct {
  char* key;
  char* value;
} line_t;

typedef int(*fn_cmp) (char* key1, char* key2);


# endif /* __JOIN_H__ */
